#—*— codeing = utf-8 —*—
#@Time : 2022/9/14 17:24
#@Author :计科1813 38 和泽妮
#@File : 3.6.py
#@Software : PyCharm
import random
cishu =int((input("请问您想随机选几次:")))
for i in range(1,cishu+1):
    while 1:
        red = random.randint(0, 3)
        yellow = random.randint(0, 3)
        green = random.randint(0, 6)
        if red+yellow+green == 8:
            print("第%d次选择:\t红球%d个\t黄球%d个\t绿球%d个"%(i,red,yellow,green))
            break
        else:
            pass